function easeAnimate(el, target) {
    if (el.timer) {
        clearInterval(el.timer)
    }
    el.timer = setInterval(function () {
        var currentLeft = el.offsetLeft;
        var step = (target - currentLeft) / 10;
        if (Math.abs(step) < 1) {
            step = step > 0 ? 1 : Math.floor(step);
        }
        currentLeft += step;
        el.style.left = currentLeft + 'px';
        if (target == currentLeft) {
            clearInterval(el.timer);
            timer = null;
        }
    }, 16.7)
}